home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / clip / unix / clp_env.csh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1993-11-16  |  646 b   |  26 lines

  1. #! /bin/csh 
  2. # CLIP Cshellscript equal to CLP_ENV.BAT
  3.  
  4. unalias rm
  5. rm clp_env.dat
  6. touch clp_env.dat
  7.  
  8. if (.$1 == .) then
  9.              echo unsetenv CLIP_SRC  >> clp_env.dat
  10.          echo unsetenv CLIP_TRG  >> clp_env.dat
  11.              echo ..... CLiP environment cleared .....
  12.              exit
  13. endif
  14.  
  15. if (.$2 == .) then
  16.             echo ..... Please specify directories for  .....
  17.          echo ..... SOURCE files and TARGET modules .....
  18.          exit
  19. endif
  20.  
  21. echo "setenv CLIP_SRC  $1" >> clp_env.dat
  22. echo "setenv CLIP_TRG  $2" >> clp_env.dat
  23. echo "..... Set CLiP environment ....."
  24. echo "Source file directory is   " $1
  25. echo "Target module directory is " $2
  26.